package com.meichis.mcsappframework.adapter.slidelistview.base;


import com.meichis.mcsappframework.adapter.slidelistview.ViewHolder;

/**
 * Created by pei on 16/8/10.
 */
public interface ItemViewDelegate<T>
{
    //获取Item 布局id
    public abstract int getItemViewLayoutId();
    //获取侧滑 布局id
    public abstract int getSlideViewLayoutId();
    //根据对象的属性返回不同布局
    public abstract boolean isForViewType(T item, int position);
    //通过ViewHolder 设置内容
    public abstract void convert(ViewHolder holder, T t, int position);


}
